package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @AdminPermission
 * @(admin_permission)
 * @version : Ver 1.0
 */
@TableName("admin_permission")
public class AdminPermission implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:主键
	 * @字段:id INT(10)
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;


	/**
	 * @备注:资源名称
	 * @字段:name VARCHAR(128)
	 */
	private String name;


	/**
	 * @备注:资源类型：menu,button,
	 * @字段:type VARCHAR(32)
	 */
	private String type;


	/**
	 * @备注:访问url地址
	 * @字段:url VARCHAR(128)
	 */
	private String url;


	/**
	 * @备注:权限代码字符串
	 * @字段:percode VARCHAR(128)
	 */
	private String percode;


	/**
	 * @备注:父结点id
	 * @字段:parentid BIGINT(19)
	 */
	private Long parentid;


	/**
	 * @备注:是否可用,1：可用，0不可用
	 * @字段:available CHAR(1)
	 */
	private String available;

	@TableField(exist = false)
	private Boolean isChecked;


	public AdminPermission(){
	}

	public AdminPermission(
		Integer id
	){
		this.id = id;
	}



	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}


	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}


	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return this.type;
	}


	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}


	public void setPercode(String percode) {
		this.percode = percode;
	}

	public String getPercode() {
		return this.percode;
	}


	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public Long getParentid() {
		return this.parentid;
	}

	public Boolean getChecked() {
		return isChecked;
	}

	public void setChecked(Boolean checked) {
		isChecked = checked;
	}

	public void setAvailable(String available) {
		this.available = available;
	}

	public String getAvailable() {
		return this.available;
	}
}
